﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Labaratornaya1
{
    internal class Student
    {
        int i;
        private Person mySelf;
        private Education formEduc;
        private int myGroup;
        private Exam myExam;

        public Person TakeMySelf 
        {
            get
            {
                return mySelf;
            }
            set
            {
                mySelf = value as Person;
            }
        }
        public Education MyEducation 
        { 
            get 
            { 
                return formEduc; 
            } 
            set 
            { 
                formEduc = value; 
            }
        }
        public int MyGroup
        {
            get
            {
                return myGroup;
            }
            set
            {
                myGroup = value;
            }
        }
        public Exam MyExams
        {
            get
            {
                return myExam;
            }
            set
            {
                myExam = value as Exam;
            }
        }
        public Student()
        {
            mySelf = new Person();
            formEduc = 0;
            myGroup = 24;
            myExam = new Exam();
        }
        public Student(Person mySelf, Education formEduc, int myGroup)
        {
            this.mySelf = mySelf;
            this.formEduc = formEduc;
            this.myGroup = myGroup;
        }
        double GPA
        {
            get
            {
                double gpa = 5;
                return gpa;
            }
        }
        /*public void AddExams ( params Exam [] ) 
        {
        }*/
    }
}
